* Don't show "you can view and copy the source of this page" message for pages which...
authorRob Church <robchurch@users.mediawiki.org>
Mon, 18 Dec 2006 18:17:37 +0000 (18:17 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 18 Dec 2006 18:17:37 +0000 (18:17 +0000)
RELEASE-NOTES
includes/OutputPage.php
languages/messages/MessagesEn.php

index f24d47c..7fe83fd 100644 (file)
@@ -342,6 +342,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   (plus optional ISBN-13 prefix) with no immediately following alphanumeric
   character, disallow multiple consecutive internal redirects
 * (bug 2785) Accept optional colon prefix in links when formatting comments
+* Don't show "you can view and copy the source of this page" message for
+  pages which don't exist
 
 == Languages updated ==
 
index 57f0b67..f5a0eb3 100644 (file)
@@ -895,6 +895,7 @@ class OutputPage {
                }
 
                if( is_string( $source ) ) {
+                       $this->addWikiText( 'viewsourcetext' );
                        if( $source === '' ) {
                                global $wgTitle;
                                if ( $wgTitle->getNamespace() == NS_MEDIAWIKI ) {
index 71eca68..6295229 100644 (file)
@@ -767,9 +767,8 @@ Function: $1<br />
 Query: $2',
 'viewsource' => 'View source',
 'viewsourcefor' => 'for $1',
-'protectedtext' => 'This page has been locked to prevent editing.
-
-You can view and copy the source of this page:',
+'protectedtext' => 'This page has been locked to prevent editing.',
+'viewsourcetext' => 'You can view and copy the source of this page:',
 'protectedinterface' => 'This page provides interface text for the software, and is locked to prevent abuse.',
 'editinginterface' => "'''Warning:''' You are editing a page which is used to provide interface text for the software. Changes to this page will affect the appearance of the user interface for other users.",
 'sqlhidden' => '(SQL query hidden)',